<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <title>后台查询系统</title>
    <meta name="keywords" content="Admin">
    <meta name="description" content="Admin">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Core CSS  -->
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/glyphicons.min.css">

    <!-- Theme CSS -->
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/theme.css">
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/pages.css">
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/plugins.css">
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/responsive.css">

    <!-- Boxed-Layout CSS -->
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/boxed.css">

    <!-- Demonstration CSS -->
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/demo.css">

    <!-- Your Custom CSS -->
    <link rel="stylesheet" type="text/css" href="/admin/Public/admin/css/custom.css">

    <!-- Core Javascript - via CDN -->
    <script type="text/javascript" src="/admin/Public/admin/js/jquery.min.js"></script>
    <script type="text/javascript" src="/admin/Public/admin/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/admin/Public/admin/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/admin/Public/admin/js/uniform.min.js"></script>
    <script type="text/javascript" src="/admin/Public/admin/js/main.js"></script>
    <script type="text/javascript" src="/admin/Public/admin/js/custom.js"></script>
	<script type="text/javascript" src="/admin/Public/admin/js/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
	.user_list .t{width:50%;}
	.page {
  width: 100%;
  padding: 30px 15px;
  background: #FFF;
  text-align: center;
  overflow: hidden;
}
.page .first,
.page .prev,
.page .current,
.page .num,
.page .current,
.page .next,
.page .end {
  padding: 8px 16px;
  margin: 0px 5px;
  display: inline-block;
  color: #008CBA;
  border: 1px solid #F2F2F2;
  border-radius: 5px;
}
.page .first:hover,
.page .prev:hover,
.page .current:hover,
.page .num:hover,
.page .current:hover,
.page .next:hover,
.page .end:hover {
  text-decoration: none;
  background: #F8F5F5;
}
.page .current {
  background-color: #008CBA;
  color: #FFF;
  border-radius: 5px;
  border: 1px solid #008CBA;
}
.page .current:hover {
  text-decoration: none;
  background: #008CBA;
}
.page .not-allowed {
  cursor: not-allowed;
}
.slist{
  margin-left: 65px;

}
</style>	
</head>

<body>
<!-- Start: Header -->
<header class="navbar navbar-fixed-top" style="background-image: none; background-color: rgb(240, 240, 240);">
    <div class="pull-left"><a class="navbar-brand" href="<?php echo'/admin/index' ?>">
        <div class="navbar-logo"><img src="/admin/Public/admin/images/logo.png" alt="logo"></div>
    </a></div>
    <div class="pull-right header-btns">
        <a class="user"></span><?php if($_SESSION!=""){echo "尊敬的"."<span style='font-size:20px;font-weight:800;'>".$_SESSION['nickname']."</span>欢迎您的登录！";} ?></a>
		<a href="<?php echo '/admin/modipass'?>">修改密码</a>
        <a style="width:100px;height:28px;" onclick="if(!confirm('是否退出')){return false;}" style="color:red" href="<?php  echo '/admin/login' ?>" class="btn btn-default btn-gradient" type="button">
		 退出</a>
    </div>
</header>
<!-- End: Header -->

<!-- Start: Main -->
<div id="main">
    <!-- Start: Sidebar -->
    <aside id="sidebar" class="affix">
        <div id="sidebar-search">
            <div class="sidebar-toggle"><span class="glyphicon glyphicon-resize-horizontal"></span></div>
        </div>
        <div id="sidebar-menu">
            <ul class="nav sidebar-nav">
                <li>
                    <a href="<?php echo '/admin/index.html' ?>"><span class="glyphicons glyphicon-home"></span><span
                            class="sidebar-title">系统菜单</span></a>
                </li>
				<li><a href="#sideEight" class="accordion-toggle menuopen"><span
                        class="glyphicons glyphicon-list"></span><span class="sidebar-title">统计</span><span
                        class="caret"></span></a>
                    <ul class="nav sub-nav" id="sideEight" style="">
						<li><a style="font-weight:900;color:#000" href="<?php echo '/admin/day_information.html'?>"><span class="glyphicons glyphicon-record"></span>  当日的信息</a></li>
						<li><a style="font-weight:900;color:#000" href="<?php echo '/admin/active_agent.html' ?>"><span class="glyphicons glyphicon-record"></span>昨日代理信息</a></li>
						<li><a style="font-weight:900;color:#000" href="<?php echo '/admin/active_player.html' ?>"><span class="glyphicons glyphicon-record"></span>昨日活跃玩家</a></li>
                    </ul>
                </li>
                <li><a href="#sideEight" class="accordion-toggle menuopen"><span
                        class="glyphicons glyphicon-list"></span><span class="sidebar-title">玩家信息查询</span><span
                        class="caret"></span></a>
                    <ul class="nav sub-nav" id="sideEight" style="">
                        <li><a href="<?php echo '/admin/grabble.html' ?>"><span class="glyphicons glyphicon-record"></span>玩家信息</a></li>
                        <li><a href="<?php echo '/admin/sinfo.html' ?>"><span class="glyphicons glyphicon-record"></span>在线玩家</a></li>
						<li><a href="<?php echo '/admin/history.html'?>"><span class="glyphicons glyphicon-record"></span>游戏记录</a></li>
						<li><a href="<?php echo '/admin/playercharge.html'?>"><span class="glyphicons glyphicon-record"></span>玩家购钻</a></li>
                    </ul>
                </li>
                 <li><a href="#sideEight" class="accordion-toggle menuopen menu-open"><span
                        class="glyphicons glyphicon-list"></span><span class="sidebar-title">代理商管理</span><span
                        class="caret"></span></a>
                    <ul class="nav sub-nav" id="sideEight" style="">
                         <li><a href="<?php echo '/admin/supervise.html' ?>"><span class="glyphicons glyphicon-record"></span>代理商信息</a></li>
            <li id="li"><a href="<?php echo '/admin/recharge.html'?>"><span class="glyphicons glyphicon-record"></span>  代理微信充值信息</a></li>

            <!-- <dt class="slist">
                <dl><a href="<?php echo '/admin/recharge00.html'?>"><span class=""></span>所有订单</a></dl>
                <dl><a href="<?php echo '/admin/recharge.html'?>"><span class=""></span>订单成功</a></dl>
                <dl><a href="<?php echo '/admin/recharge02.html'?>"><span class=""></span>订单异常</a></dl>
                <dl><a href="<?php echo '/admin/recharge03.html'?>"><span class=""></span>订单处理中</a></dl>
            </dt> -->





 						<li><a href="<?php echo '/admin/recordpay.html' ?>"><span class="glyphicons glyphicon-record"></span>代理转账钻石记录</a></li>
                   </ul>
                </li>
				<li><a href="#sideEight" class="accordion-toggle menuopen"><span
                        class="glyphicons glyphicon-list"></span><span class="sidebar-title">其他</span><span
                        class="caret"></span></a>
                     <ul class="nav sub-nav" id="sideEight" style="">
						<li><a href="<?php echo '/admin/deduct.html'?>"><span class="glyphicons glyphicon-record"></span>  代理返利管理</a></li>
            <li><a href="<?php echo '/admin/purview.html'?>"><span class="glyphicons glyphicon-record"></span>  权限分配</a></li>
						<li><a href="<?php echo'/admin/modipass.html' ?>"><span class="glyphicons glyphicon-record"></span>  修改密码</a></li>
						<li><a href="<?php echo'/admin/journal.html'?>"><span class="glyphicons glyphicon-record"></span>操作日志</a></li>
                    </ul>
                </li>

				<!-- <li> -->
                    <!-- <a href="#"><span class="glyphicons glyphicon-list"></span><span class="sidebar-title">权限管理</span></a> -->
                <!-- </li> -->
            </ul>
        </div>
    </aside>

  <!-- Start: Content -->
  <section id="content">
    <div id="topbar" class="affix">
      <ol class="breadcrumb">
       <li style="font-size:1.3em"><a href="<?php echo '/admin/index'?>"><span>返回首页</span></a></li>
        <li style="font-size:1.3em"><a href="javascript:void(0)" onclick="history.go(-1)" class="back"><span>返回上一层</span></a></li>
        <li style="font-size:1.3em"><a href="<?php echo '/admin/recharge' ?>" class="back"><span>微信充值记录</span></a></li>
      </ol>
    </div>
    <div class="container">

	 <div class="row">
        <div class="col-md-12">
			<div class="panel">
				<div>
					<form action="" method="get" id="form">
						<div class="panel-heading" style="float:left">
						充值ID： <input style="outline:none;height:30px;border-radius:8px;" id="username" name="userid" 
            value="<?php echo empty($_GET['userid'])?'':$_GET['userid'];?>" type="" class="txt">
						</div>
						<div class="panel-heading" style="float:left;width:79%;">
						 <span style="float:left">充值时间：</span>
						 <input type="text" class="Wdate" name="sdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="height:30px;float:left;font-size:1px;border-radius:8px;" value="<?php echo empty($_GET['sdate'])?'':$_GET['sdate'];?>"/>
						<span style="float:left">--</span>
						<input type="text" class="Wdate" name="edate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="height:30px;float:left;font-size:1px;border-radius:8px;" value="<?php echo empty($_GET['edate'])?'':$_GET['edate'];?>"/>
            <dl class="sou" style="width:12%;height:50px;float:left;margin-left:2%;">
              <b style="width:10%;">订单状态</b>
              <select id="type" name="type" style="margin-top:1%;clear:both;width:58%;" onchange="self.location.href=options[selectedIndex].value">
                <option value="http://<?php echo $_SERVER['SERVER_NAME'];?>/admin/recharge.html" >订单成功</option>
                <option value="http://<?php echo $_SERVER['SERVER_NAME'];?>/admin/recharge00.html" >所有订单</option>
                <option value="http://<?php echo $_SERVER['SERVER_NAME'];?>/admin/recharge02.html">订单异常</option>
                <option value="http://<?php echo $_SERVER['SERVER_NAME'];?>/admin/recharge03.html">订单处理中</option>
              </select>
            </dl>
						
						<dl class="sou" style="width:12%;height:50px;float:left;margin-left:2%;">
							<b style="width:10%;">充值金额</b>
              
							<select id="rmb" name="rmb" style="margin-top:1%;clear:both;width:58%;">
								<option value="" ><?php echo $post_select;?></option>
								<option value="1">40元</option>
								<option value="2">110元</option>
								<option value="3">350元</option>
								<option value="4">1000元</option>
								<option value="5">3000元</option>
							</select>
						</dl>

            

						<div class="panel-heading" style="float:left;margin-top:-9px;">
						订单号： <input style="outline:none;height:30px;border-radius:8px;" id="order_no" name="order_no" 
            value="<?php echo empty($_GET['order_no'])?'':$_GET['order_no'];?>" type="" class="txt">
						</div>
						<input style="float:right;width:15%;height:25px;border-radius:9px;background:##bbb4bb;color:#000;line-height:2px;outline:none" type="submit" name="soso" value="搜索" class="btn">
						</div>
					</form>
				</div>
              
                <div class="panel-body">

				
                  <table class="table table-striped table-bordered table-hover dataTable">
                      <tr class="active">
                        <th>用户ID</th>
                        <th>用户属性</th>
						<th>充值房卡数 </th>
						<th>充值金额(元)</th>
                        <th>充值状态</th>
                        <th>充值方式</th>
                        <th>商品订单号</th>
						<th>充值时间</th>
                        <!-- <th width="200">操作</th> -->
                      </tr>
					    <?php  foreach ($loadgame as $k=>$v) { ?>
                    <tr class="success">
                        <td><?php echo $v['oper_account']?></td>
                        <td><?php if($v['sort']==0){echo '代理';}else{echo '普通代理';}?></td>
					              <td><?php echo $v['order_gems'] ?></td>
                        <td><?php echo $v['order_money']/100?></td>
                        <td><?php if($v['order_status']==0){ echo '<spam style="color: red">订单异常</spam>';} if($v['order_status']==1){ echo '订单成功';} if($v['order_status']==2){ echo '订单处理中';}?>
                        </td>
                        <td><?php if($v['pay_mode']==32){echo '微信扫码';} ?></td>
                        <td><?php echo $v['order_no'] ?></td>
                        <td><?php echo $v['times'] ?></td>
                   </tr>
						<?php }?>
                  </table>
					        <!-- <div class="pull-right">
                    <ul class="pagination" id="paginator-example">
                      <?php echo $page?>
                    </ul>
                  </div>   -->
                </div>
              </div>
          </div>
        </div>
    </div>
    <div style="position:fixed;top:90%;right:30px;">
      <ul class="pagination" id="paginator-example" style="width: 1603px;border: solid 1px #dadada;">
                      <?php echo $page?>
      </ul>
    </div>
  </section>
  <script type="text/javascripe">